package com.netjava.dao;

import java.util.List;

import com.netjava.pojo.User;

public interface IUserDAO {
	public void save(User user);
	public void delete(User user);
	public User findById(java.lang.Integer id);
	public List findByUserName(Object userName);
	public List findByEmail(Object email);
	public List findByUserPhone(Object userPhone);
	public List findBySex(Object sex);
	public List findByUserAddress(Object userAddress);
	public List findByType(Object type);
	public List findAll();
	public void attachDirty(User user);
	public List<User> getNumUsers(Integer page,Integer num);
}
